<div class="modal fade" tabindex="-1" role="dialog" aria-labelledby="myModalLabel" aria-hidden="true" data-backdrop="static" id="update">
    <div class="modal-dialog modal-lg-f modal-dialog-centered" role="document" *ngIf="getTabVal">
        <div class="modal-content">
            <div class="modal-header">
                
                <h4 class="modal-title" id="myModalLabel">功能管理 - 修改</h4>
                <button type="button" class="close" data-dismiss="modal" aria-hidden="true">&times;</button>
            </div>
            <div class="popup-body modal-body modal-body680">

                <form name="editForm" #editForm="ngForm">
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">上级机构：</label>
                        <div class="col-xs-12 col-sm-9">
                            <p>{{superiorUpdate}}</p>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">功能名称：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="functionName" #functionName=ngModel  autocomplete="off" class="form-control" required [(ngModel)]="getTabVal.functionName"/>
                            <label class="red required">*</label>
                            <div class="error" *ngIf="functionName.invalid && (functionName.touched)">
                                <small class="error" *ngIf="functionName.errors.required">功能名称不能为空</small>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">功能编码：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="functionCode" #functionCode=ngModel autocomplete="off" class="form-control" required [(ngModel)]="getTabVal.functionCode"
                            />
                            <label class="red required">*</label>
                            <div class="error" *ngIf="functionCode.invalid && (functionCode.touched)">
                                <small class="error" *ngIf="functionCode.errors.required">功能编码不能为空</small>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">英文名：</label>
                        <div class="col-xs-12 col-sm-9">
                            <input type="text" name="functionEName" #functionEName=ngModel autocomplete="off" class="form-control" required [(ngModel)]="getTabVal.functionEName"
                                required />
                            <label class="red required">*</label>
                            <div class="error" *ngIf="functionEName.invalid && (functionEName.touched)">
                                <small class="error" *ngIf="functionEName.errors.required">英文名不能为空</small>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">页面地址：</label>
                        <div class="col-xs-12 col-sm-9"> 
                            <input type="url" name="pageUrl" #pageUrl=ngModel autocomplete="off" class="form-control" required [(ngModel)]="getTabVal.pageUrl" />
                            <label class="red required">*</label>
                            <div class="error" *ngIf="pageUrl.invalid && (pageUrl.touched)">
                                <small class="error" *ngIf="pageUrl.errors.required">页面地址不能为空</small>
                            </div>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">功能类型：</label>
                        <div class="col-xs-12 col-sm-9">
                            <!-- <select name="functionType" #functionType=ngModel  [(ngModel)]="getTabVal.functionType">
                                    <option value="1">功能点</option>
                                    <option value="0">功能页</option>
                            </select> -->
                            <label class="toggle toggle-positive">
                                <input type="checkbox" name="functionType" #functionType=ngModel [(ngModel)]="getTabVal.functionType" />
                                <div class="track">
                                    <div class="tit " *ngIf="getTabVal.functionType">功能页</div>
                                    <div class="tit right" *ngIf="!getTabVal.functionType">功能点</div>
                                    <div class="handle"></div>
                                </div>
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">是否启用：</label>
                        <div class="col-xs-12 col-sm-9">
                            <!-- <select name="enable" #enable=ngModel  [(ngModel)]="getTabVal.enable">
                                    <option value="1">启用</option>
                                    <option value="0">禁用</option>
                            </select> -->
                            <label class="toggle toggle-positive">
                                <input type="checkbox" name="enable" #enable=ngModel [(ngModel)]="getTabVal.enable" />
                                <div class="track">
                                    <div class="tit" *ngIf="getTabVal.enable">启用</div>
                                    <div class="tit right" *ngIf="!getTabVal.enable">禁用</div>
                                    <div class="handle"></div>
                                </div>
                            </label>
                        </div>
                    </div>
                    <div class="form-group">
                        <label class="col-xs-12 col-sm-3 control-label text-right">描述：</label>
                        <div class="col-xs-12 col-sm-9">
                            <textarea rows="5" 
                                type="text" 
                                name="description" 
                                class="form-control" 
                                #description=ngModel
                                [(ngModel)]="getTabVal.description"
                                >
                                </textarea>
                        </div>
                    </div>
                </form>
            </div>
            <div class="modal-footer">
                <button type="button" class="btn btn-default" mat-raised-button data-dismiss="modal" (click)="modalLnit()">取消</button>
                <button type="button" class="btn btn-primary" mat-button data-dismiss="modal" [disabled]="editForm.invalid" (click)="submitEdit()"><span class="glyphicon glyphicon-pencil"></span> 修改</button>
           </div>
        </div>
    </div>
</div>